package com.guigu.service.impl;

import com.guigu.dto.diseaseDTO;
import com.guigu.dto.gyDTO;
import com.guigu.entity.disease;
import com.guigu.entity.intervention;
import com.guigu.entity.t_meals_meal;
import com.guigu.entity.t_motionsportsevents;
import com.guigu.mapper.diseaseMapper;
import com.guigu.service.diseaseService;
import com.guigu.vo.diseaseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class diseaseServicelmpl implements diseaseService {

    @Autowired
    private diseaseMapper dimapper;

    @Override
    public List<diseaseVO> query(diseaseDTO dto) {
        return this.dimapper.query(dto);
    }

    @Override
    public int add(disease di) {
        return this.dimapper.add(di);
    }

    @Override
    public Integer maxid() {
        return this.dimapper.maxid();
    }

    @Override
    public int update(disease di) {
        return this.dimapper.update(di);
    }

    @Override
    public int delete(int id) {
        return this.dimapper.delete(id);
    }



    @Override
    public List<intervention> querygy(gyDTO dto) {
        return this.dimapper.querygy(dto);
    }

    @Override
    public List<t_motionsportsevents> queryyd(gyDTO dto) {
        return this.dimapper.queryyd(dto);
    }

    @Override
    public List<t_meals_meal> queryss(gyDTO   dto) {
        return this.dimapper.queryss(dto);
    }


}
